export const checkNumber = (rule, value, callback) => {
  if (value !== undefined && value !== null && value !== '') {
    const regx = new RegExp(/^([0-9]|[1-9][0-9]+)$/);
    if (!regx.test(String(value))) {
      callback('请输入数字');
    }
  }
  callback();
};
